<?php use_helper('I18N');
echo "<link href='/sf/sf_admin/css/main.css' media='screen' type='text/css' rel='stylesheet'>";
?>

<script type="text/javascript">
$(function() {
    $(".editLink").button({
        icons: {
            primary: "ui-icon-circle-check"
        }
    });
    $("#btnCreate").button({
        icons: {
            primary: "ui-icon-circle-plus"
        }
    });
});
</script>
<div style="padding: 10px; top: 10px; width: 98%">
    <div class="portlet" id="sf_admin_container">
        <div class="portlet-header">Member List</div>
        <div class="portlet-content" id="sf_admin_content" style="width: 98%">
            <table class="sf_admin_list" width="100%">
                <thead>
                <tr>
                    <th></th>
                    <th>Full name</th>
                    <th>Title</th>
                    <th>Nric</th>
                    <th>Join date</th>
                    <th>Created by</th>
                    <th>Created on</th>
                    <th>Updated by</th>
                    <th>Updated on</th>
                </tr>
                </thead>
                <tbody>
<?php foreach ($mlm_ahli_majlis_rajas as $mlm_ahli_majlis_raja):
    if ($className == "sf_admin_row_0") {
        $className = "sf_admin_row_1";
    } else {
        $className = "sf_admin_row_0";
    }

    ?>
<tr class="<?php echo $className?>">
    <td><?php echo link_to($mlm_ahli_majlis_raja->getAhliId(), 'member/show?ahli_id='.$mlm_ahli_majlis_raja->getAhliId()) ?></td>
      <td><?php echo $mlm_ahli_majlis_raja->getFullName() ?></td>
      <td><?php echo $mlm_ahli_majlis_raja->getTitle() ?></td>
      <td><?php echo $mlm_ahli_majlis_raja->getNric() ?></td>
      <td><?php echo $mlm_ahli_majlis_raja->getJoinDate() ?></td>
      <td><?php echo $mlm_ahli_majlis_raja->getCreatedBy() ?></td>
      <td><?php echo $mlm_ahli_majlis_raja->getCreatedOn() ?></td>
      <td><?php echo $mlm_ahli_majlis_raja->getUpdatedBy() ?></td>
      <td><?php echo $mlm_ahli_majlis_raja->getUpdatedOn() ?></td>
  </tr>
<?php endforeach; ?>
</tbody>
</table>
<br>

            <div style="text-align: right">
<?php echo link_to ('create', 'member/create') ?>
                </div>
        </div>
    </div>
</div>
